<div class="hProducts form">
  <?php echo $this->Form->create('HProduct'); ?>
  <fieldset>
    <legend><?php echo __('Editar Compra'); ?></legend>

    <?php
//        echo $this->element('hproducts/fields')  

    echo $this->Form->input('shop_id');
    echo $this->Form->input('product_id');
    echo $this->Form->input('date');
    echo $this->Form->input('purchase_price');
    echo $this->Form->input('quantity');
    ?>

  </fieldset>
  <?php echo $this->Form->end(__('guardar')); ?>
</div>
<div class="actions">
  <h3><?php echo __('Actions'); ?></h3>
  <ul>

    <li><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('HProduct.id')), null, __('Are you sure you want to delete # %s?', $this->Form->value('HProduct.id'))); ?></li>
    <li><?php echo $this->Html->link(__('List H Products'), array('action' => 'index')); ?></li>
    <li><?php echo $this->Html->link(__('List Shops'), array('controller' => 'shops', 'action' => 'index')); ?> </li>
    <li><?php echo $this->Html->link(__('New Shop'), array('controller' => 'shops', 'action' => 'add')); ?> </li>
    <li><?php echo $this->Html->link(__('List Products'), array('controller' => 'products', 'action' => 'index')); ?> </li>
    <li><?php echo $this->Html->link(__('New Product'), array('controller' => 'products', 'action' => 'add')); ?> </li>
  </ul>
</div>
